﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class RSSHome : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!Page.IsPostBack)
        {
            QuanTriDAO quanTriDao = new QuanTriDAO();
            rptChannel.DataSource = quanTriDao.TinTuc_nhom_getall("-1");
            rptChannel.DataBind();
        }
    }
    public string formatLinkRSS(string id)
    {
        string url = Request.Url.ToString().ToLower();
        url = url.Substring(0, url.IndexOf("rsshome.aspx"));
        return url + "?channelId=" + id;
    }
}
